package com.example.musicrecommend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.musicrecommend.model.dto.paper.PaperQueryRequest;
import com.example.musicrecommend.model.entity.Paper;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @description 针对表【question(卷子)】的数据库操作Service
 * @createDate 2024-05-27 19:27:21
 */
public interface PaperService extends IService<Paper> {


    QueryWrapper<Paper> getQueryWrapper(PaperQueryRequest paperQueryRequest);

    /**
     * 参数校验
     * @param paper
     * @param isAdd
     */

    void validPaper(Paper paper, boolean isAdd);

    /**
     * 删除卷子
     * @param ids
     * @return
     */
    boolean removePaper(Long[] ids);
}
